Add persistent guest & hv logging in xenconsoled.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 4 Jun 2007 13:49:12 +0000 (14:49 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 4 Jun 2007 13:49:12 +0000 (14:49 +0100)
commit96763f7c9a2e976f75af2c32ebf169c0334dc7e0
tree6e24bca8432867c2fe643becf518f54f0b5ae292
parent943767ccb97fc65777e14acf58415baf9103314d
Add persistent guest & hv logging in xenconsoled.

  * The  --log  command line argument takes one of 4 values

      - none   - no logging   (the default)
      - hv     - log all hypervisor messages
      - guest  - log all guest messages
      - both   - log all guest & hypervisor messages

  * The --log-dir command line argument takes a path to specify where
    to store logfiles. If omitted it defaults to /var/log/xen/console

  * The hypervisor logfile is $LOGDIR/hypervisor.log

  * The guest logfile is  $LOGDIR/guest-[NAME].log

  * If receiving a SIGHUP it will close & re-open all log files to
    enable logrotate to do its magic

  * Fixes the permissions of /var/run/xenconsoled.pid

  * Adds a --pid-file command line argument to override the default
    location of pid file (this is not really related to logging, but
    since I was in that code...)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/console/daemon/io.c
tools/console/daemon/main.c
tools/console/daemon/utils.c